package com.bizhibihui.ordermeal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bizhibihui.ordermeal.entity.BizAddress;
import com.bizhibihui.ordermeal.vo.base.BaseConditionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 */
public interface BizAddressMapper extends BaseMapper<BizAddress> {

    /**
     * 分页查询
     *
     * @param page
     * @param vo
     * @return
     */
    List<BizAddress> findByCondition(@Param("page") IPage<BizAddress> page, @Param("vo") BaseConditionVo vo);

    /**
     *
     * @param userId
     * @return
     */
    List<BizAddress> getMyAddress(@Param("userId") String userId);
}
